package org.zoomdev.zoom;

import com.alibaba.fastjson2.modules.ObjectWriterModule;
import com.alibaba.fastjson2.writer.FieldWriter;
import com.alibaba.fastjson2.writer.ObjectWriterCreator;
import com.alibaba.fastjson2.writer.ObjectWriterProvider;

import java.util.List;

public class PhoneAnnotationModule {
    public void apply(ObjectWriterProvider provider) {
        provider.register(new ObjectWriterModule() {
            @Override
            public boolean createFieldWriters(ObjectWriterCreator creator, Class objectType, List<FieldWriter> fieldWriters) {
                return true;
            }
        });
    }
}